/**
 * Demonstrates a range of Button options the framework offers out of the box
 */
Ext.define('cloud.view.role.Power', {
    extend: 'Ext.Panel',
    xtype: 'power',
    requires: ['Ext.List', 'Ext.TitleBar', 'Ext.field.Select', 'Ext.field.Search'],
    config: {
        layout:'card',
        items: [
            {
                xtype: 'list',
                store: 'RolePurviewAllFind',
                pressedCls: false,
                selectedCls: false,
                flex:1,
                id:'powerList',
                cls: 'x-list2',
                height:'100%',
                emptyText: '还未添加权限',
                itemTpl: '<div class="listName">{name}  </div>' +
                    '<input type="button" value="删除功能权限" name="delet_power" style="width: 100px; position: absolute; top: 30px; right: 60px;font-size: 12px;"  />' +
                    '<div class="listConten">' +
                    '<span>地区: {cadname}</span>' +
                    '<span>排序：{sort}</span>' +
                    '</div>'
            },
            {
                xtype: 'hiddenfield',
                id: 'power_rid_show'
            },
            {
                xtype: 'toolbar',
                docked: 'bottom',
                layout: {
                    type: 'hbox',
                    pack: 'center'
                },
                items: [
                    {
                        xtype: 'button',
                        cls: 'x-button2',
                        id: 'power_add',
                        iconMask: true,
                        text:'新建权限'
                    }
                ]
            }
        ]
    }
});